package com.live.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.live.dao.LiveDao;
import com.live.service.LiveService;
import com.live.vo.LiveVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lky
 * @version 1.008
 * @date 2022/1/5 19:03
 */
@Service
public class LiveServiceImpl implements LiveService {
    @Autowired
    private LiveDao liveDao;
    /**
     * 列表
     * @param page
     * @param pageSize
     * @param status
     * @return
     */
    @Override
    public IPage<LiveVo> getList(Integer page, Integer pageSize, Integer status) {

        Page<LiveVo> liveVoPage = new Page<>(page, pageSize);

        return liveDao.getList(liveVoPage,status);
    }
}
